package databaseTransaction;

import java.util.ArrayList;
import java.util.List;

public class Command {
	private int typeOfCommand;
	private TableField fieldName;
	private List<TableField> listOfWhereFieldName;

	public Command() {
		listOfWhereFieldName = new ArrayList<TableField>();
	}

	public int getTypeOfCommand() {
		return typeOfCommand;
	}

	public void setTypeOfCommand(int typeOfCommand) {
		this.typeOfCommand = typeOfCommand;
	}

	public TableField getFieldName() {
		return fieldName;
	}

	public void setFieldName(TableField fieldName) {
		this.fieldName = fieldName;
	}

	public List<TableField> getListOfWhereFieldName() {
		return listOfWhereFieldName;
	}

	public void setListOfWhereFieldName(List<TableField> listOfWhereFieldName) {
		this.listOfWhereFieldName = listOfWhereFieldName;
	}

	public void addListOfWhereFieldName(TableField whereFieldName) {
		listOfWhereFieldName.add(whereFieldName);
	}
}
